import request from '@/utils/request';
//  加班记录列表
export async function getOvertimelist(params) {
    return request('/api/oa/v1/attendancecount/getmyovertime', {
        method: 'POST',
        data: params
    });
}
//  出差记录列表
export async function getBusinesslist(params) {
    return request('/api/oa/v1/attendancecount/getmytrip', {
        method: 'POST',
        data: params
    });
}
//  外出记录列表
export async function getOutsidelist(params) {
    return request('/api/oa/v1/attendancecount/getmyout', {
        method: 'POST',
        data: params
    });
}

// 字典列表接口
export function getTypeList(params) {
    return request('/api/oa/v1/common/select/typelist', {
        method: 'POST',
        params
    });
}
/**
 * 外出记录导出接口
 */
export async function attendOutsideExport(params) {
    // 连接LYH 本机 调试文件下载
    return request('/api/oa/v1/attendancecountexport/getattendanceoutexport', {
        method: 'POST',
        data: params,
        getResponse: true,
        encryption: false,
        isFile: true,
        responseType: 'blob',
        headers: { 'Content-Type': 'application/json' }
    });
}
/**
 * 出差记录导出接口
 */
export async function attendBusinessExport(params) {
    // 连接LYH 本机 调试文件下载
    return request('/api/oa/v1/attendancecountexport/gettripoutexport', {
        method: 'POST',
        data: params,
        getResponse: true,
        encryption: false,
        isFile: true,
        responseType: 'blob',
        headers: { 'Content-Type': 'application/json' }
    });
}
